import {sendRequest, sendUploadRequest} from "@/utils/request";
import {addInfo, imageUploadInfo} from "@/api/serve/url/blog/add";

export function addRequest(data: string) {
    return sendRequest(addInfo.url(), addInfo.method, data)
}

export function imageUploadRequest(data: any) {
    return sendUploadRequest(imageUploadInfo.url(), imageUploadInfo.method, data)
}